<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cmsArticle-edit" object="${article}">
            <input id="contentId" name="contentId" value="${article.contentId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">内容编码：</label>
                <div class="col-sm-8">
                    <input id="contentCode" name="contentCode" value="${article.contentCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">站点编号：</label>
                <div class="col-sm-8">
                    <input id="siteId" name="siteId" value="${article.siteId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">栏目编码：</label>
                <div class="col-sm-8">
                    <input id="columnId" name="columnId" value="${article.columnId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模型模板：</label>
                <div class="col-sm-8">
                    <input id="formId" name="formId" value="${article.formId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">模板路径：</label>
                <div class="col-sm-8">
                    <input id="templatePath" name="templatePath" value="${article.templatePath}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">外部链接：</label>
                <div class="col-sm-8">
                    <input id="contentUrl" name="contentUrl" value="${article.contentUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">标题名称：</label>
                <div class="col-sm-8">
                    <input id="titleName" name="titleName" value="${article.titleName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">标题图片：</label>
                <div class="col-sm-8">
                    <input id="titleUrl" name="titleUrl" value="${article.titleUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">附件：</label>
                <div class="col-sm-8">
                    <input id="annex" name="annex" value="${article.annex}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">页面标题：</label>
                <div class="col-sm-8">
                    <input id="title" name="title" value="${article.title}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">关键词：</label>
                <div class="col-sm-8">
                    <input id="keywords" name="keywords" value="${article.keywords}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">描述文字：</label>
                <div class="col-sm-8">
                    <input id="description" name="description" value="${article.description}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">Tag标签：</label>
                <div class="col-sm-8">
                    <input id="tag" name="tag" value="${article.tag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否推荐0、否1、是：</label>
                <div class="col-sm-8">
                    <input id="isRecommend" name="isRecommend" value="${article.isRecommend}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否置顶0、否1、是：</label>
                <div class="col-sm-8">
                    <input id="isTop" name="isTop" value="${article.isTop}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否首页显示0、否1、是：</label>
                <div class="col-sm-8">
                    <input id="isShow" name="isShow" value="${article.isShow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">点击数：</label>
                <div class="col-sm-8">
                    <input id="clicks" name="clicks" value="${article.clicks}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">发布人：</label>
                <div class="col-sm-8">
                    <input id="createPeople" name="createPeople" value="${article.createPeople}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">	
                <label class="col-sm-3 control-label">审核状态0、待审核  1、通过 2、未通过：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" value="${article.status}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态:0、删除 1、正常 2、回收站：</label>
                <div class="col-sm-8">
                    <input id="delFlag" name="delFlag" value="${article.delFlag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" value="${article.remark}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <%@ include file="/WEB-INF/views/include/footer.jsp"%>
    <script type="text/javascript">
		var prefix = ctx + "cms/cmsArticle"
		$("#form-cmsArticle-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-cmsArticle-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
